/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package project.jpdftools.other;

import java.awt.Color;
import java.util.Random;

/**
 *
 * @author Mido
 */
public class RandomColor {

    /**
     * Generate a random color
     *
     * @return
     */
    public static Color getRandomColor() {
        Random rand = new Random();
        // Java 'Color' class takes 3 floats, from 0 to 1.
        float r = rand.nextFloat();
        float g = rand.nextFloat();
        float b = rand.nextFloat();

        return new Color(r, g, b);
    }
}
